package eCheque;

/**
 * Interface for receiving account registration events. Listeners can register
 * to be notified of such events via the {@link RegistrationManager}
 * 
 * @author Steve Pennington
 * 
 */
public interface RegistrationListener {

	/**
	 * Called when a new account has been registered
	 * 
	 * @param account
	 *            Account that has been registered
	 */
	public void accountRegistered(EChequeRegisteration account);

	/**
	 * Called when the user attempted to create an account, but the operation
	 * failed
	 * 
	 * @param response
	 *            Response from the server. This should contain an error.
	 * @param account
	 *            Account that failed to be registered
	 */
	public void accountRegstrationFailed(EChequeResponse response,
			EChequeRegisteration account);
}
